/*
 * @Descripttion: 身份相关
 * @Author: 何伟伦 weilun@ssc-hn.com
 * @Date: 2024-03-26
 * @LastEditors: 何伟伦 weilun@ssc-hn.com
 * @LastEditTime: 2024-03-28
 */
import request from '/@/api/request'

/** 获取身份详细信息 */
export const requestGetIdentityInfoById = (data: GetIdentityInfoByIdTypes.IRequest) => {
  return request.post<IBaseResponse<GetIdentityInfoByIdTypes.IResponse[]>>('/business/identity/getIdentityInfoById', data)
}
/** 获取全部身份列表 */
export const requestGetAllIdentityList = () => {
  return request.post<IBaseResponse<GetAllIdentityListTypes.IResponse>>('/business/identity/getAllIdentityList', {})
}
/** 分页获取身份发行机构身份列表 */
export const requestGetPageIdentityList = (data: GetPageListTypes.IRequest) => {
  return request.post<IPaginationResponse<GetPageListTypes.IResponse[]>>('/business/identity/getCompanyIdentityList', data)
}
/** 删除身份信息 */
export const requestDeleteIdentity = (data: DeleteIdTypes.IRequest) => {
  return request.post<IPaginationResponse<DeleteIdTypes.IResponse>>('/business/identity/deleteIdentity', data)
}
/** 保存身份信息 */
export const requestSaveIdentityInfo = (data: SaveIdTypes.IRequest) => {
  return request.post<IPaginationResponse<SaveIdTypes.IResponse>>('/business/identity/saveIdentityInfo', data)
}
/** 获取当前机构全部身份列表 */
export const requestGetCompanyAllIdentityList = (data: GetCompanyAllIdentityListTypes.IRequest) => {
  return request.post<IBaseResponse<GetCompanyAllIdentityListTypes.IResponse>>('/business/identity/getCompanyAllIdentityList', data)
}
